<div class='dataTables_wrapper'>
	<?php $this->widget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
			// array('name'=>'id', 'value'=>$model->id),
			'firstname',
			'lastname',
			//'image',
			// array(
				// 'name'=>'image',
				//'type' => 'image',
				//'value' => Yii::app()->createUrl("/").Yii::app()->controller->module->image["url"].$dataImage,
				//'htmlOptions'=>array('style'=> 'max-width: 100px; max-height: 70px'),
				// 'type'=>'raw',
				// 'value'=> CHtml::image(Yii::app()->createUrl("/").Yii::app()->controller->module->image["url"].$model->image,'alt', array('style'=> 'max-width: 100px; max-height: 70px')),
			// ),
			'address',
			'address_line',
			'city',
			'state',
			'zip',
			'payment',
			'emailPaypal',
			'email',
			'phone',
			// 'config_id',
			'quantity',
			'price',
			'options',
			
		),
	)); ?>
	
	<br>
	
	<div class="wd-cls-toolber-action fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
	<?php
		if (!empty($configCart)) :
			foreach ($configCart as $item):
				$type = ($model->config_id == $item->id) ? "danger" : "info";
					
				echo "<a class=\"btn btn-{$type} wd-cls-action-config\" href=\"".Yii::app()->createUrl("/products/carts/updateConfig", array('id' => $model->id, 'config_id' => $item->id))."\">{$item->name}</a>";
		
			endforeach;
		endif;
	?>
	</div>
</div>

<style type = "text/css">
	.wd-cls-toolber-action .wd-cls-action-config{width: 200px;margin-right: 5px;}
</style>